#ifndef __GameGrid_H__
#define __GameGrid_H__

#include "cocos2d.h"
USING_NS_CC;

class CGameGrid :public Node
{
public:
	CGameGrid();
	virtual ~CGameGrid();

	virtual bool init();
	void initGrid(int nRow, int nCol);
	CREATE_FUNC(CGameGrid);

	CC_SYNTHESIZE_READONLY(int, m_nX, X);
	CC_SYNTHESIZE_READONLY(int, m_nY, Y);
	CC_SYNTHESIZE_READONLY(int, m_nGridWidth, GridWidth);
	CC_SYNTHESIZE_READONLY(Vector<Sprite*>, m_pVecGrid, VecGrid);

	float getHeight();
	float getWidth();

private:

};

#endif